import React from 'react';
// import ReactDOM from 'react-dom';
// 引入全局的less文件
// import "./assets/common.less"
import ReactDOM from 'react-dom/client';


// 用@
import "@/assets/common.less"
import router from "./router"
import {Provider} from "react-redux"
import store from "./store"
import Toast from "./components/Toast"
// ReactDOM.render(
//    router,
//   document.getElementById("root")
// );

const rootEl = document.getElementById("root");
const root = ReactDOM.createRoot(rootEl!);
root.render(<Provider store={store}>
  <Toast/>
  {router}
  </Provider>);

// const root = ReactDOM.createRoot(document.getElementById("root"));
// root.render(router)